package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class StringTest2 {
    public static void main(String[] args) {
        String a="java";
        String b="java";
        String c="JAVA";
        //常量池
        System.out.println(a==b);//equals:
        String a1=a.toUpperCase();
        String b1=b.toUpperCase();
        System.out.println(a1);
        System.out.println(b1);
        System.out.println(a1==b1);
        System.out.println(a1==c);


    }
}
